package com.hspedu.newData.dmsxl.数组;

import java.util.Arrays;

/**
 * @Author: yh
 * @description: 
 * @CreateTime: 2025-05-19 
 * @Version: 1.0
 */

public class LC3024三角形类型 {

    public String triangleType(int[] nums) {
        Arrays.sort(nums);

        if ((nums[0] + nums[1]) > nums[2]){
            if (nums[0] == nums[2]){
                return "equilateral";
            }

            if (nums[0] == nums[1] || nums[2] == nums[1]){
                return "isosceles";
            }

            return "scalene";
        }
        return "nono";
    }
}
